/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package module2.exercise3.banking;

/**
 *
 * @author trang
 */
public class Account {
    private  double balance;
// building a constructor
    public Account(double init_balance) {
        this.balance = init_balance;
    }
// method to retrieve the current balance
    public double getBalance() {
        return balance;
    }
// method to add the amount
    public double deposit(double  amt){
        balance += amt;
        return amt;
    }
    // method to remove the amount
    public double withdraw(double  amt){
        balance -= amt;
        return amt;
    }
}
